package com.demo;

public class Question1 {
    public static void main(String[] args){
        String string = "i am a student";
        String n = "";
        for (int i = string.length() - 1; i > -1; i--) {
            n += String.valueOf(string.charAt(i));
        }
        System.out.println(n);
    }

}
